<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('企业入驻申请列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                           
                            <li>
                                <label>企业名称：</label>
                                <input type="text" name="deptName"/>
                            </li>
                          
                            <li>
                                <label>企业类型：</label>
                                <select name="deptType">
                                    <option value="">所有</option>
                                    <option value="合资">合资</option>
                                    <option value="独资">独资</option>
                                    <option value="国有">国有</option>
                                    <option value="私营">私营</option>
                                    
                                </select>
                            </li>
                            
                            <li>
                                <label>法人手机号：</label>
                                <input type="text" name="legalPhone"/>
                            </li>
                           
                            <li>
                                <label>法人姓名：</label>
                                <input type="text" name="legalName"/>
                            </li>
                            
                            <li>
                                <label>工商注册号：</label>
                                <input type="text" name="regCode"/>
                            </li>
                          
                            <li>
                                <label>审核状态：</label>
                                <select name="status">
                                    <option value="">所有</option>
                                    <option value="00">待审核</option>
                                    <option value="02">已通过</option>
                                    <option value="99">未通过</option>
                                </select>
                            </li>
                           
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:apply:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:apply:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:apply:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:apply:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:apply:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:apply:remove')}]];
        var prefix = ctx + "system/apply";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "企业入驻申请",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'applyId',
                    title: '入驻申请id',
                    visible: false
                },
                {
                    field: 'applyType',
                    title: '申请类型'
                },
                {
                    field: 'deptName',
                    title: '企业名称'
                },
                {
                    field: 'business',
                    title: '行业'
                },
                {
                    field: 'deptScope',
                    title: '企业经营范围'
                },
                {
                    field: 'deptType',
                    title: '企业类型'
                },
                {
                    field: 'deptAddress',
                    title: '企业链接'
                },
                {
                    field: 'legalPhone',
                    title: '法人手机号'
                },
                {
                    field: 'lagalEmail',
                    title: '法人邮箱'
                },
                {
                    field: 'legalName',
                    title: '法人姓名'
                },
                {
                    field: 'legalRemark',
                    title: '企业介绍'
                },
                {
                    field: 'deptPhone',
                    title: '企业联系电话'
                },
                {
                    field: 'regCode',
                    title: '工商注册号'
                },
                {
                    field: 'creditCode',
                    title: '统一社会信用代码'
                },
                {
                    field: 'orgCode',
                    title: '组织机构代码'
                },
                {
                    field: 'taxpayerCode',
                    title: '纳税人识别号'
                },
                {
                    field: 'taxpayerQua',
                    title: '纳税人资质'
                },
                {
                    field: 'status',
                    title: '审核状态'
                },
                {
                    field: 'auditUserId',
                    title: '审核人id'
                },
                {
                    field: 'auditUserName',
                    title: '审核人名称'
                },
                {
                    field: 'auditTime',
                    title: '审核时间'
                },
                {
                    field: 'auditRemark',
                    title: '审核意见'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.applyId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.applyId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>